package com.dingup.mock.enums;

/**
 * Created by liuhaoyu on 16/7/8.
 */
public enum MarkTypeEnum {
    SPEAKING("speaking", "口语"),
    WRITING("writing", "写作");

    private final String code;
    private final String des;

    MarkTypeEnum(String code, String des) {
        this.code = code;
        this.des = des;
    }

    public String getCode() {
        return code;
    }
    public String getDes() {
        return des;
    }
    public static Boolean contains(String name){
        for (MarkTypeEnum e : values()){
            if (e.name().equals(name)){
                return true;
            }
        }
        return false;
    }
}
